use crate::{
    desktop::{PriceRequest, PriceResponse},
    ApiExt,
};

#[tauri::command]
pub async fn request<R: tauri::Runtime>(
    app: tauri::AppHandle<R>,
    req: PriceRequest,
) -> PriceResponse {
    app.api().req(req).await
}
